﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace YasharEl.Infrastructure.EntityModel
{
    [Serializable]
    public class InvalidEnumerationException : DomainModelException
    {
        public InvalidEnumerationException(object value,string description,Type enumType)
            :base(string.Format("'{0}' is not a valid {1} in {2}", value, description, enumType))
        {
        }

        protected InvalidEnumerationException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }

    }
}
